// JavaScript Document


function show(id){
	
	if(document.getElementById("hide").style.display=="block")
	document.getElementById("hide").style.display="none";
	else
	document.getElementById("hide").style.display="block"
	var idobj=document.getElementsByName(id);
	var up=document.getElementsByClassName("update_1");
	for(var i=0;i<=4;i++){
		up[i].value=idobj[i].value;
	}
}
function changeImgTo2(){
	var img=document.getElementById("img")
	img.src="image/gb2.jpg"
}
function changeImgTo1(){
	var img=document.getElementById("img")
		img.src="image/gb.jpg"	
}
window.onload=function(){
	changeDaoh();
	
}

function changebg1(obj){
   obj.style.backgroundImage="url(image/dh_02.png)"
}
function changebg2(obj){
   obj.style.backgroundImage="url(image/dh_01.png)"
}
function ifDel(){
	return window.confirm("是否删除这条信息？");
}
function ifOut(){
	return window.confirm("是否退出系统？");
}
function changeDaoh(){
	var li=document.getElementsByName("daoh");
	for(var i=0;i<=5;i++){
		li[i].onmouseover=function(){			
			changebg1(this);
		}
		li[i].onmouseout=function(){
			changebg2(this);
		}
	}
}